<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script src="../js/axios-0.27.2-min.js"></script>
<script>
    axios({
        method: 'get',
        url: 'http://localhost:8080/weby_spring_war/axiosServlet?username=张三',
    }).then(function (response) {
        alert(response.data)
    });

    axios.post('http://localhost:8080/weby_spring_war/axiosServlet?username=张三').then(function (resp) {
        alert(resp.data)
    });
</script>

</body>
</html>